home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / X11 / XDrawImageString.z / XDrawImageString
Encoding:
Text File  |  2002-10-03  |  5.1 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXDDDDrrrraaaawwwwIIIImmmmaaaaggggeeeeSSSSttttrrrriiiinnnngggg((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))XXXXDDDDrrrraaaawwwwIIIImmmmaaaaggggeeeeSSSSttttrrrriiiinnnngggg((((3333XXXX11111111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XDrawImageString, XDrawImageString16 - draw image text
  10.  
  11.      SSSSYYYYNNNNTTTTAAAAXXXX
  12.           XDrawImageString(_d_i_s_p_l_a_y, _d, _g_c, _x, _y, _s_t_r_i_n_g, _l_e_n_g_t_h)
  13.                 Display *_d_i_s_p_l_a_y;
  14.                 Drawable _d;
  15.                 GC _g_c;
  16.                 int _x, _y;
  17.                 char *_s_t_r_i_n_g;
  18.                 int _l_e_n_g_t_h;
  19.  
  20.           XDrawImageString16(_d_i_s_p_l_a_y, _d, _g_c, _x, _y, _s_t_r_i_n_g, _l_e_n_g_t_h)
  21.                 Display *_d_i_s_p_l_a_y;
  22.                 Drawable _d;
  23.                 GC _g_c;
  24.                 int _x, _y;
  25.                 XChar2b *_s_t_r_i_n_g;
  26.                 int _l_e_n_g_t_h;
  27.  
  28.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  29.           _d         Specifies the drawable.
  30.  
  31.           _d_i_s_p_l_a_y   Specifies the connection to the X server.
  32.  
  33.           _g_c        Specifies the GC.
  34.  
  35.           _l_e_n_g_t_h    Specifies the number of characters in the string
  36.                     argument.
  37.  
  38.           _s_t_r_i_n_g    Specifies the character string.
  39.  
  40.           _x
  41.           _y         Specify the x and y coordinates, which are
  42.                     relative to the origin of the specified drawable
  43.                     and define the origin of the first character.
  44.  
  45.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  46.           The _X_D_r_a_w_I_m_a_g_e_S_t_r_i_n_g_1_6 function is similar to
  47.           _X_D_r_a_w_I_m_a_g_e_S_t_r_i_n_g except that it uses 2-byte or 16-bit
  48.           characters.  Both functions also use both the foreground and
  49.           background pixels of the GC in the destination.
  50.  
  51.           The effect is first to fill a destination rectangle with the
  52.           background pixel defined in the GC and then to paint the
  53.           text with the foreground pixel.  The upper-left corner of
  54.           the filled rectangle is at:
  55.  
  56.           [x, y - font-ascent]
  57.  
  58.           The width is:
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 10/3/02)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXDDDDrrrraaaawwwwIIIImmmmaaaaggggeeeeSSSSttttrrrriiiinnnngggg((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))XXXXDDDDrrrraaaawwwwIIIImmmmaaaaggggeeeeSSSSttttrrrriiiinnnngggg((((3333XXXX11111111))))
  71.  
  72.  
  73.  
  74.           overall-width
  75.  
  76.           The height is:
  77.  
  78.           font-ascent + font-descent
  79.  
  80.           The overall-width, font-ascent, and font-descent are as
  81.           would be returned by _X_Q_u_e_r_y_T_e_x_t_E_x_t_e_n_t_s using gc and string.
  82.           The function and fill-style defined in the GC are ignored
  83.           for these functions. The effective function is _G_X_c_o_p_y, and
  84.           the effective fill-style is _F_i_l_l_S_o_l_i_d.
  85.  
  86.           For fonts defined with 2-byte matrix indexing and used with
  87.           _X_D_r_a_w_I_m_a_g_e_S_t_r_i_n_g, each byte is used as a byte2 with a byte1
  88.           of zero.
  89.  
  90.           Both functions use these GC components: plane-mask,
  91.           foreground, background, font, subwindow-mode, clip-x-origin,
  92.           clip-y-origin, and clip-mask.
  93.  
  94.           _X_D_r_a_w_I_m_a_g_e_S_t_r_i_n_g and _X_D_r_a_w_I_m_a_g_e_S_t_r_i_n_g_1_6 can generate
  95.           _B_a_d_D_r_a_w_a_b_l_e, _B_a_d_G_C, and _B_a_d_M_a_t_c_h errors.
  96.  
  97.      DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  98.           _B_a_d_D_r_a_w_a_b_l_e
  99.                     A value for a Drawable argument does not name a
  100.                     defined Window or Pixmap.
  101.  
  102.           _B_a_d_G_C     A value for a GContext argument does not name a
  103.                     defined GContext.
  104.  
  105.           _B_a_d_M_a_t_c_h  An _I_n_p_u_t_O_n_l_y window is used as a Drawable.
  106.  
  107.           _B_a_d_M_a_t_c_h  Some argument or pair of arguments has the correct
  108.                     type and range but fails to match in some other
  109.                     way required by the request.
  110.  
  111.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  112.           XDrawString(3X11), XDrawText(3X11), XLoadFont(3X11),
  113.           XTextExtents(3X11)
  114.           _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 10/3/02)
  130.  
  131.  
  132.  
  133.